/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.project.entity.approvalrecord;

import org.hibernate.validator.constraints.Length;

import com.idenger.common.persistence.DataEntity;

/**
 * 项目审批Entity
 * @author chenlin
 * @version 2018-04-11
 */
public class ApprovalRecord extends DataEntity<ApprovalRecord> {
	
	private static final long serialVersionUID = 1L;
	private String projectId;		// 项目ID
	private String remark;		// 审批备注
	private String approvalStatus;		// 审批状态
	private String approvalReason;		// 审批原因
	private String sourceRemarks;		// 数据源备注
	private String deleteFlag;		// 删除标记
	
	public ApprovalRecord() {
		super();
	}

	public ApprovalRecord(String id){
		super(id);
	}

	@Length(min=0, max=64, message="项目ID长度必须介于 0 和 64 之间")
	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=2, message="审批状态长度必须介于 0 和 2 之间")
	public String getApprovalStatus() {
		return approvalStatus;
	}

	public void setApprovalStatus(String approvalStatus) {
		this.approvalStatus = approvalStatus;
	}
	
	@Length(min=0, max=1024, message="审批原因长度必须介于 0 和 1024 之间")
	public String getApprovalReason() {
		return approvalReason;
	}

	public void setApprovalReason(String approvalReason) {
		this.approvalReason = approvalReason;
	}
	
	@Length(min=0, max=255, message="数据源备注长度必须介于 0 和 255 之间")
	public String getSourceRemarks() {
		return sourceRemarks;
	}

	public void setSourceRemarks(String sourceRemarks) {
		this.sourceRemarks = sourceRemarks;
	}
	
	@Length(min=0, max=1, message="删除标记长度必须介于 0 和 1 之间")
	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	
}